home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 2: CDPD 1
/
Almathera Ten on Ten - Disc 2: CDPD 1.iso
/
pd
/
101-125
/
118
/
wiredemo
/
bubbles.h
< prev
next >
Wrap
C/C++ Source or Header
|
1995-03-13
|
812b
|
50 lines
/*
* BUBBLES.H
*/
#include <stdio.h>
#include <math.h>
#include <typedefs.h>
#include <xmisc.h>
#define PMAXX (4096+3*256)
#define PMAXY 2048
#define PMAXZ 8192
#define PSKIP 1024
#define CLAMP 500
#define CCLAMP 200
#define ACLAMP 30
#define XPI 3.141592654
#define XTWOPI 6.283185308
#define XPI2 1.570796327
#define OBJECT struct _OBJECT
typedef unsigned long ulong;
typedef unsigned short uword;
typedef unsigned char ubyte;
typedef long COOR[3];
OBJECT {
long *points;
uword *connect;
uword npts;
uword ncon;
uword theta,phi,rot; /* rotation */
long x,y,z; /* position */
};
extern void *malloc();
extern void *GetMsg();
extern SCR *OpenScreen();
extern WIN *OpenWindow();
extern OBJECT *makeobject();
extern double bearing(), range();